*********************************************************************************
*** Codebook
*********************************************************************************

** DV
lab var chinaect "China Threat"

lab var ch_cty_d "China GFDI No"
lab var ch_ctyval_d "China GFDI Value"
lab var ch_ctyjobs_d "China GFDI Jobs"

lab var china_sd "China Threat (standardized)"
lab var chinaect3 "China Threat 0 - Good 1 - Not Good or Bad/Bad"
lab var chinaect2 "China Threat 0 - Good 1 - Not Good or Bad 1 - Bad"

lab var chinamil "China Military Threat == 1"


** Main Covariates
lab var chinanoiv_d_log "China GFDI No (logged)"
lab var chinavaliv_d_log "China GFDI Value (logged)"
lab var chinajobsiv_d_log "China GFDI Jobs (logged)"
lab var chinafdidum "China FDI == 1"

lab var medianoiv_d_log "China GFDI News No (logged)"
lab var nomedianoiv_d_log "China GFDI No News No (logged)"
lab var mediavaliv_d_log "China GFDI News Value (logged)"
lab var nomediavaliv_d_log "China GFDI No News Value (logged)"
lab var mediajobsiv_d_log "China GFDI News Jobs (logged)"
lab var nomediajobsiv_d_log "China GFDI No News Jobs (logged)"

lab var asianoiv_d_log "East Asia GFDI No (logged)"
lab var asiavaliv_d_log "East Asia GFDI Value (logged)"
lab var asiajobsiv_d_log "East Asia GFDI Jobs (logged)"
lab var nonchinanoiv_d_log "All Other GFDI No (logged)"
lab var nonchinavaliv_d_log "All Other GFDI Value (logged)"
lab var nonchinajobsiv_d_log "All Other GFDI Jobs (logged)"

lab var it_chinanoiv_d_log "China GFDI No Excl IT (logged)"
lab var it_chinavaliv_d_log "China GFDI Value Excl IT (logged)"
lab var it_chinajobsiv_d_log "China GFDI Jobs Excl IT (logged)"
lab var ind_chinanoiv_d_log "China GFDI No Excl Industrial (logged)"
lab var ind_chinavaliv_d_log "China GFDI Value Excl Industrial (logged)"
lab var ind_chinajobsiv_d_log "China GFDI Jobs Excl Industrial (logged)"
lab var auto_chinanoiv_d_log "China GFDI No Excl Auto (logged)"
lab var auto_chinavaliv_d_log "China GFDI Value Excl Auto (logged)"
lab var auto_chinajobsiv_d_log "China GFDI Jobs Excl Auto (logged)"

lab var chinanoiv_d_log_8mo "China FDI No 8 months (logged)"
lab var chinavaliv_d_log_8mo "China FDI Value 8 months (logged)"
lab var chinajobsiv_d_log_8mo "China FDI Jobs 8 months (logged)"
lab var chinanoiv_d_log_1y "China FDI No 1 year (logged)"
lab var chinavaliv_d_log_1y "China FDI Value 1 year (logged)"
lab var chinajobsiv_d_log_1y "China FDI Jobs 1 year (logged)"
lab var chinanoiv_d_log_3y "China FDI No 3 years (logged)"
lab var chinavaliv_d_log_3y "China FDI Value 3 years (logged)"
lab var chinajobsiv_d_log_3y "China FDI Jobs 3 years (logged)"

lab var mano_d "Chinese M\&A Count"
lab var mano_d_log "Chinese M\&A (logged)"

** Instruments
lab var z_log "Instrument No (logged)"
lab var zval_log "Instrument Value (logged)"
lab var zjobs_log "Instrument Jobs (logged)"
lab var it_z_log "Excl IT Instrument No (logged)"
lab var it_zval_log "Excl IT Instrument Val (logged)"
lab var it_zjobs_log "Excl IT Instrument Jobs (logged)"
lab var ind_z_log "Excl Industrial Instrument No (logged)"
lab var ind_zval_log "Excl Industrial Instrument Val (logged)"
lab var ind_zjobs_log "Excl Industrial Instrument Jobs (logged)"
lab var auto_z_log "Excl Auto Instrument No (logged)"
lab var auto_zval_log "Excl Auto Instrument Val (logged)"
lab var auto_zjobs_log "Excl Auto Instrument Jobs (logged)"
lab var z_log_8mo "China FDI No 8 months (logged)"
lab var zval_log_8mo "China FDI Value 8 months (logged)"
lab var zjobs_log_8mo "China FDI Jobs 8 months (logged)"
lab var z_log_1y "China FDI No 1 year (logged)"
lab var zval_log_1y "China FDI Value 1 year (logged)"
lab var zjobs_log_1y "China FDI Jobs 1 year (logged)"
lab var z_log_3y "China FDI No 3 years (logged)"
lab var zval_log_3y "China FDI Value 3 years (logged)"
lab var zjobs_log_3y "China FDI Jobs 3 years (logged)"


** Controls
lab var nationalism "Nationalism"
lab var education "Education"
lab var econoutlook "Economic Outlook"
lab var party "Party Identification"
lab var age "Age"
lab var gender "Female"

lab var unemploy_ivbase_d "\% Unemployment"
lab var unemploy_diff_d "\$\Delta\$ \% Unemployment"
lab var per_manu_ivbase_d "\% Manufacturing"
lab var perchinese_ivbase_d "\% Chinese"
lab var chinesepop_diff_d "\$\Delta\$ \% Chinese"
lab var medinc_ivbase_d_log "Median Income (logged)"
lab var medinc_ivbase_d "Median Income"
lab var pop_ivbase_d_log "Population (logged)"
lab var pop_ivbase_d "Population"
lab var presvote "Republican Presidential Candidate Voteshare (t-4)"
lab var per_urban "\% Urban"
lab var percollege_ivbase_d "\% College"
lab var tradeshock_d "China Trade Shock"
lab var tradeshocki_d "China Trade Shock Instrument"


lab var othernoiv_d "Other GFDI No"
lab var othervaliv_d "Other GFDI Value"
lab var otherjobsiv_d "Other GFDI Jobs"

lab var othernoiv_d_log "Other GFDI No (logged)"
lab var othervaliv_d_log "Other GFDI Value (logged)"
lab var otherjobsiv_d_log  "Other GFDI Jobs (logged)"

label define yearcat 1 "ANES 2012" 2 "ANES 2020"
lab values year yearcat
label define racecat 1 "White" 2 "Black" 3 "Hispanic" 4 "Other" 
lab values race racecat
